//
//  LLView.m
//  LLPhotoBrowser
//
//  Created by dx on 17/6/26.
//  Copyright © 2017年 MaoChao Network Co. Ltd. All rights reserved.
//

#import "LLView.h"

@implementation LLView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.userInteractionEnabled = YES;
    }
    return self;
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    Float32 ScreenWidth = [UIScreen mainScreen].bounds.size.width;
    Float32 ScreenHeight = [UIScreen mainScreen].bounds.size.height;
    CGContextRef contextRef = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(contextRef,[UIColor whiteColor].CGColor);
    CGContextAddRect(contextRef, CGRectMake(0, 0, ScreenWidth, ScreenHeight));
    CGContextAddRect(contextRef, CGRectMake(44, 100, ScreenWidth-88, ScreenHeight-200));
    CGContextEOFillPath(contextRef);
}


@end
